package com.ruoyi.common.utils.design;

public class DepartmentApprover extends Approver {
    public DepartmentApprover(String name){
        super(name);
    }
    @Override
    public void processApprover(ApproverRequest approveRequest) {
        if(approveRequest.getPrice() <= 5000) {
            System.out.println(" 请求编号 id= " + approveRequest.getId() + " 被 " + this.name + " 处理");
        }else {
            next.processApprover(approveRequest);
        }
    }

}
